package cn.yqx.bankshop.goods.service;

import cn.yqx.bankshop.goods.service.fallback.OrderServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(value="bankshop-order-service", fallback = OrderServiceFallbackFactory.class)
public interface OrderService {

    @GetMapping(value = "/api/v1/statistical/find_goods_top5")
    List<Map<String,Object>> findGoodsTop5(@RequestParam("supplierId") Long supplierId);

    @GetMapping(value = "/api/v1/statistical/find_goods_by_sales")
    List<Map<String,Object>> findGoodsBySales() ;
}
